<?php include "coresection/connection.php";?>
<?php include "coresection/checkSession.php";?>
<?php include "coresection/order-list.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <?php include 'modules/head.php'; ?>
</head>

<body>
<?php include 'modules/topbar.php'; ?>

<div class="setup_area">
    <?include 'modules/sidebar-admin.php'?>

    <div class="header">
        <h1>会员添加</h1>
        <?php include 'modules/header.php'; ?>
    </div>

    <div class="content_area">

        <div class="main" >
            <div class="content">
                1.所有新添加会员初始密码为<b>123</b>，请安排用户尽快修改密码！
                <br/>
                2.列表不存在的部门，可以到部门管理<a href="controlbase/department/detail-add.php?nav-itemed=department">添加新的部门</a>
            </div>

    <div>

        <form action="coresection/admin-useradd.php" class="layui-form user_add_from" method="post" enctype="multipart/form-data">


                <div class="layui-form-item">
                    <label class="layui-form-label">姓名<span>*</span></label>
                    <div class="layui-input-block">
                        <input type="text" name="user_name" lay-verify="required"  lay-verify="user_name" autocomplete="off" placeholder="请输入用户名" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">会员号</label>
                    <div class="layui-input-block">
                        <span>系统自动分配</span>
                    </div>
                </div>



            <?
            $department_list=select_lines_all_items($table_Prefix."department","nid desc","","0");
            ?>


            <div class="layui-form-item">
                <label class="layui-form-label">部门<span>*</span></label>
                <div class="layui-input-block">
                    <select name="department" lay-filter="department">
                        <? for($i=0;$i<count($department_list);$i++){ ?>
                            <option value="<? echo $department_list[$i]['name'] ?>"> <? echo $department_list[$i]['name'] ?></option>
                        <? } ?>
                    </select>
                </div>
            </div>



                <div class="layui-form-item">
                    <label class="layui-form-label">银行账户</label>
                    <div class="layui-input-block">
                        <input type="text" name="account" lay-verify="required"  lay-verify="account" autocomplete="off" placeholder="请输入银行账号" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">账户金额</label>
                    <div class="layui-input-block">
                        <input type="text" name="balance" lay-verify="required"  lay-verify="balance" autocomplete="off" placeholder="请输入账户金额" class="layui-input">
                    </div>
                </div>


                <div class="function">
                    <input type="submit" class="layui-btn dingdantongji_btn" value="确定""/>
                </div>
            </form>


    </div>
</div>

        <?php include 'modules/footer.php'; ?>
</body>
</html>